.class public Lcom/estrongs/fs/impl/compress/c;
.super Ljava/lang/Object;
.source "CompressFileSystem.java"


# direct methods
.method public static a(Lcom/estrongs/fs/impl/compress/b;)Ljava/io/InputStream;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->k()Les/e80;

    move-result-object v0

    .line 2
    instance-of v1, v0, Lcom/estrongs/io/archive/aeszip/b;

    const/4 v2, 0x0

    if-eqz v1, :cond_2

    .line 3
    check-cast v0, Lcom/estrongs/io/archive/aeszip/b;

    .line 4
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->i()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 5
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 6
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->getPath()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/estrongs/fs/impl/compress/c$a;

    invoke-direct {v2, p0}, Lcom/estrongs/fs/impl/compress/c$a;-><init>(Lcom/estrongs/fs/impl/compress/b;)V

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/io/archive/aeszip/a;->a(Ljava/lang/String;Les/k80;)Ljava/io/InputStream;

    move-result-object v2

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    .line 7
    invoke-virtual {v0, v1}, Les/e80;->a(Z)V

    .line 8
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->j()V

    .line 9
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/io/archive/aeszip/a;->d()Ljava/lang/String;

    move-result-object v1

    .line 10
    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 11
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->l()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 12
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v1

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->l()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Lcom/estrongs/io/archive/aeszip/a;->a(Ljava/lang/String;)V

    .line 13
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->a()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v0}, Les/x70;->a(Ljava/lang/String;Les/e80;)V

    .line 14
    invoke-virtual {v0}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 15
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->getPath()Ljava/lang/String;

    move-result-object v1

    new-instance v2, Lcom/estrongs/fs/impl/compress/c$b;

    invoke-direct {v2, p0}, Lcom/estrongs/fs/impl/compress/c$b;-><init>(Lcom/estrongs/fs/impl/compress/b;)V

    invoke-virtual {v0, v1, v2}, Lcom/estrongs/io/archive/aeszip/a;->a(Ljava/lang/String;Les/k80;)Ljava/io/InputStream;

    move-result-object p0

    move-object v2, p0

    goto :goto_0

    .line 16
    :cond_2
    instance-of v0, v0, Les/g80;

    if-eqz v0, :cond_3

    .line 17
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->a()Ljava/lang/String;

    move-result-object p0

    .line 18
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/estrongs/fs/impl/local/f;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p0

    .line 19
    new-instance v2, Ljava/util/zip/GZIPInputStream;

    invoke-direct {v2, p0}, Ljava/util/zip/GZIPInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    :goto_0
    return-object v2

    :catch_0
    move-exception p0

    .line 20
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 21
    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_4

    .line 22
    invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object p0

    invoke-virtual {p0}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object v0

    :cond_4
    const-string p0, "WRONG PASSWORD"

    .line 23
    invoke-virtual {v0, p0}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result p0

    if-eqz p0, :cond_5

    .line 24
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    .line 25
    invoke-virtual {p0}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f1106cd

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    .line 26
    invoke-static {}, Lcom/estrongs/android/util/o0;->a()Landroid/os/Handler;

    move-result-object v1

    new-instance v2, Lcom/estrongs/fs/impl/compress/c$c;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/fs/impl/compress/c$c;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 27
    new-instance p0, Lcom/estrongs/fs/impl/compress/CompressFileSystemException;

    const/4 v1, 0x1

    invoke-direct {p0, v0, v1}, Lcom/estrongs/fs/impl/compress/CompressFileSystemException;-><init>(Ljava/lang/String;I)V

    throw p0

    .line 28
    :cond_5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p0

    .line 29
    invoke-virtual {p0}, Lcom/estrongs/android/pop/FexApplication;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    const v0, 0x7f1106ab

    invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p0

    .line 30
    invoke-static {}, Lcom/estrongs/android/util/o0;->a()Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/estrongs/fs/impl/compress/c$d;

    invoke-direct {v1, p0}, Lcom/estrongs/fs/impl/compress/c$d;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z

    .line 31
    new-instance v0, Lcom/estrongs/fs/impl/compress/CompressFileSystemException;

    const/4 v1, 0x2

    invoke-direct {v0, p0, v1}, Lcom/estrongs/fs/impl/compress/CompressFileSystemException;-><init>(Ljava/lang/String;I)V

    throw v0
.end method

.method public static a(Lcom/estrongs/fs/g;)Ljava/util/List;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/g;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 32
    instance-of v0, p0, Lcom/estrongs/fs/impl/compress/b;

    if-eqz v0, :cond_3

    .line 33
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 34
    check-cast p0, Lcom/estrongs/fs/impl/compress/b;

    .line 35
    :try_start_0
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->k()Les/e80;

    move-result-object v1

    .line 36
    instance-of v2, v1, Lcom/estrongs/io/archive/aeszip/b;

    const/4 v3, 0x0

    if-eqz v2, :cond_1

    .line 37
    check-cast v1, Lcom/estrongs/io/archive/aeszip/b;

    .line 38
    invoke-virtual {v1}, Lcom/estrongs/io/archive/aeszip/b;->i()Z

    move-result v2

    if-nez v2, :cond_1

    .line 39
    invoke-virtual {v1, v3}, Les/e80;->a(Z)V

    .line 40
    invoke-virtual {v1}, Lcom/estrongs/io/archive/aeszip/b;->j()V

    .line 41
    invoke-virtual {v1}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/io/archive/aeszip/a;->d()Ljava/lang/String;

    move-result-object v2

    .line 42
    invoke-static {v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 43
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->l()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/CharSequence;)Z

    move-result v2

    if-nez v2, :cond_0

    .line 44
    invoke-virtual {v1}, Lcom/estrongs/io/archive/aeszip/b;->l()Lcom/estrongs/io/archive/aeszip/a;

    move-result-object v2

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->l()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v4}, Lcom/estrongs/io/archive/aeszip/a;->a(Ljava/lang/String;)V

    .line 45
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->a()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v1}, Les/x70;->a(Ljava/lang/String;Les/e80;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 46
    :cond_1
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->j()Ljava/io/File;

    move-result-object v1

    if-eqz v1, :cond_2

    .line 47
    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    .line 48
    array-length v2, v1

    if-lez v2, :cond_2

    .line 49
    array-length v2, v1

    :goto_0
    if-ge v3, v2, :cond_2

    aget-object v4, v1, v3

    .line 50
    new-instance v5, Lcom/estrongs/fs/impl/compress/a;

    invoke-direct {v5, v4}, Lcom/estrongs/fs/impl/compress/a;-><init>(Ljava/io/File;)V

    .line 51
    new-instance v4, Lcom/estrongs/fs/impl/compress/b;

    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->k()Les/e80;

    move-result-object v6

    .line 52
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->a()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v4, v5, v6, v7}, Lcom/estrongs/fs/impl/compress/b;-><init>(Lcom/estrongs/fs/impl/compress/a;Les/e80;Ljava/lang/String;)V

    .line 53
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/compress/b;->l()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Lcom/estrongs/fs/impl/compress/b;->b(Ljava/lang/String;)V

    .line 54
    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_2
    return-object v0

    :catch_0
    move-exception p0

    .line 55
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    const/4 p0, 0x0

    return-object p0

    .line 56
    :cond_3
    new-instance p0, Lcom/estrongs/fs/FileSystemException;

    const-string v0, "can\'not handle this file path."

    invoke-direct {p0, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :goto_1
    throw p0

    :goto_2
    goto :goto_1
.end method
